/// createTime : "2022-03-10 11:43:11"
/// updateTime : "2022-03-10 11:43:34"
/// id : 3
/// versionCode : "2"
/// versionName : "2.0"
/// updateContent : "2222"
/// isForce : 1
/// isForceStr : "是"
/// downloadUrl : "222222"

class CheckUpdate {
  CheckUpdate({
    String? createTime,
    String? updateTime,
    int? id,
    String? versionCode,
    String? versionName,
    String? updateContent,
    int? isForce,
    String? isForceStr,
    String? apkSize,
    String? apkMd5,
    String? downloadUrl,
  }) {
    _createTime = createTime;
    _updateTime = updateTime;
    _id = id;
    _versionCode = versionCode;
    _versionName = versionName;
    _updateContent = updateContent;
    _isForce = isForce;
    _apkSize = apkSize;
    _apkMd5 = apkMd5;
    _isForceStr = isForceStr;
    _downloadUrl = downloadUrl;
  }

  CheckUpdate.fromJson(dynamic json) {
    _createTime = json['createTime'];
    _updateTime = json['updateTime'];
    _id = json['id'];
    _versionCode = json['versionCode'];
    _versionName = json['versionName'];
    _updateContent = json['updateContent'];
    _isForce = json['isForce'];
    _apkSize = json['apkSize'];
    _apkMd5 = json['apkMd5'];
    _isForceStr = json['isForceStr'];
    _downloadUrl = json['downloadUrl'];
  }

  String? _createTime;
  String? _updateTime;
  int? _id;
  String? _versionCode;
  String? _versionName;
  String? _updateContent;
  int? _isForce;
  String? _isForceStr;
  String? _downloadUrl;
  String? _apkMd5;
  String? _apkSize;

  String? get createTime => _createTime;

  String? get updateTime => _updateTime;

  int? get id => _id;

  String? get versionCode => _versionCode;

  String? get versionName => _versionName;

  String? get updateContent => _updateContent;

  int? get isForce => _isForce;

  String? get isForceStr => _isForceStr;

  String? get downloadUrl => _downloadUrl;

  String? get apkSize => _apkSize;

  String? get apkMd5 => _apkMd5;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['createTime'] = _createTime;
    map['updateTime'] = _updateTime;
    map['id'] = _id;
    map['versionCode'] = _versionCode;
    map['versionName'] = _versionName;
    map['updateContent'] = _updateContent;
    map['isForce'] = _isForce;
    map['isForceStr'] = _isForceStr;
    map['downloadUrl'] = _downloadUrl;
    map['apkSize'] = apkSize;
    map['apkMd5'] = apkMd5;
    return map;
  }
}
